package com.matrix.im.domain.service;

import com.matrix.im.domain.model.ChatMessage;
import org.springframework.stereotype.Service;

/**
 * @author 有点甜
 * @since 2025/8/2
 */
@Service
public class MessageFactory {

    public ChatMessage createMessage(String conversationId, Long fromUserId, Long toUserId, String content, String messageType) {
        return ChatMessage.create(conversationId, fromUserId, toUserId, content, messageType);
    }
}
